<div class="layui-form" lay-filter="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <script type="text/html" template>
        <div class="layui-form-item">
            <label class="layui-form-label">校区</label>
            <div class="layui-form-mid layui-form-text">{{ d.params.campus }}</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">课程</label>
            <div class="layui-input-inline layui-form-mid">{{ d.params.className }}</div>
        </div>
        <div class="layui-form-item" hidden>
            <label class="layui-form-label">课程代码</label>
            <div class="layui-input-inline layui-form-mid">
                <span id="classCode">{{ d.params.classCode }}</span>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">教师</label>
            <div class="layui-form-mid layui-form-text">{{ d.params.teacher.substring(9) }}</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">学分</label>
            <div class="layui-form-mid layui-form-text">{{ d.params.credit }}</div>
        </div>
        {{# if(d.params.remark !== "") { }}
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-form-mid layui-form-text layui-input-inline">{{ d.params.remark }}</div>
        </div>
        {{# } }}
        <div class="layui-form-item" id="coinDiv" hidden>0</div>
        <div class="layui-form-item" id="item-coin" hidden>
            <label class="layui-form-label">投币</label>
            <div class="layui-input-inline" id="slider-coin" style="padding: 16px; margin-left: -14px">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">购书</label>
            <div class="layui-input-block">
                {{# if (d.params.buyBook) { }}
                <input type="checkbox" checked name="buy" lay-skin="switch" lay-text="是|否">
                {{# }else{ }}
                <input type="checkbox" name="buy" lay-skin="switch" lay-text="是|否">
                {{# } }}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">调剂</label>
            <div class="layui-input-block">
                {{# if (d.params.adjust) { }}
                <input type="checkbox" checked name="adjust" lay-skin="switch" lay-text="是|否">
                {{# }else{ }}
                <input type="checkbox" name="adjust" lay-skin="switch" lay-text="是|否">
                {{# } }}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">重修</label>
            <div class="layui-input-block">
                {{# if (d.params.retake) { }}
                <input type="checkbox" lay-filter="retake" checked name="retake" lay-skin="switch" lay-text="是|否">
                {{# }else{ }}
                <input type="checkbox" lay-filter="retake" name="retake" lay-skin="switch" lay-text="是|否">
                {{# } }}
            </div>
        </div>
    </script>
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <input type="button" lay-submit lay-filter="LAY-user-back-submit" value="确认" class="layui-btn">
    </div>
</div>

